package com.twu.biblioteca.Constants;

import com.twu.biblioteca.elements.Book;

import java.util.ArrayList;
import java.util.List;

public class Books {
    public static Book SCIENCE = new Book(BooksName.SCIENCE, true);
    public static Book MATH = new Book(BooksName.MATH, true);
    public static Book MATH_EXERCISE = new Book(BooksName.MATH_EXERCISE, false);
    public static Book CLEAN_CODE = new Book(BooksName.CLEAN_CODE, false);
    public static Book COMPUTER = new Book(BooksName.COMPUTER, true);
    public static Book ART = new Book(BooksName.ART, false);
    public static Book ANGULAR_JS = new Book(BooksName.ANGULAR_JS, true);
    public static Book CULTURE = new Book(BooksName.CULTURE, true);
    public static Book ELECTRONIC_SCIENCE = new Book(BooksName.ELECTRONIC_SCIENCE, false);
    public static Book BIOLOGY = new Book(BooksName.BIOLOGY, false);

    public List<Book> getAllBooks() {
        ArrayList<Book> books = new ArrayList<Book>();
        books.add(SCIENCE);
        books.add(MATH);
        books.add(MATH_EXERCISE);
        books.add(CLEAN_CODE);
        books.add(COMPUTER);
        books.add(ART);
        books.add(ANGULAR_JS);
        books.add(CULTURE);
        books.add(ELECTRONIC_SCIENCE);
        books.add(BIOLOGY);

        return books;
    }
}
